package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * <p>
 * 
 * </p>
 *
 * @author liyuanlin
 * @since 2024-08-15
 */
@Data
@TableName("work_order")
public class WorkOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @NotNull(message  = "工单编号不能为空")
    private String orderNo;

    /**
     * 0交办 1直接答复 3无效工单
     */
    private Byte orderType;

    @NotNull(message  = "标题不能为空")
    private String title;

    @NotNull(message  = "内容不能为空")
    private String content;

    private Long handleDeptId;

    private Date createTime;

    private Date fenpaiTime;

    /**
     * 0否 1是
     */
    private Byte isOverdue;
}
